<script lang="ts" setup>
// function getCurrentTimeInFormat(): string {
//   const now = new Date();
//   const year = now.getFullYear();
//   const month = String(now.getMonth() + 1).padStart(2, '0');
//   const day = String(now.getDate()).padStart(2, '0');
//   const hours = String(now.getHours()).padStart(2, '0');
//   const minutes = String(now.getMinutes()).padStart(2, '0');
//   const seconds = String(now.getSeconds()).padStart(2, '0');
//   return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
// }

const data = {
  accNbr: '17357510268',
  contentParam: '',
  extOrderId: '',
  orderContent: '电信测试推送1',
  password: '141024',
  requestTime: '2024-10-25 14:38:58',
  sceneId: '7812',
  sendDate: '',
  lanId: '571',
  systemCode: 'SXDXMP',
  transactionId: 'SXDXMP202205050921580000024809',
  userAcct: 'SXDXMP',
};

async function send() {
  await getSendMessage(data).catch((error) => {
    console.error(error);
  });
}
</script>

<template>
  <div>
    <a-button @click="send">
      点击发送短信
    </a-button>
  </div>
</template>
